package com.tpp.entity;

import java.sql.Timestamp;

public class Film {
    public int Film_id;
    public String Film_name;
    public Timestamp Play_time;
    public String Director;
    public String Actor;
    public String Film_type;
    public String Make_film_area;
    public String Make_film_man;
    public int Film_lengh;
    public String Film_introduce;
    public int Film_play_status;
    public String Url;
    public float Score;

    public String getInfo(){
        return "导演："+this.Director+"\n主演："+this.Actor+"\n类型："+this.Film_type+"<br>\t制片国家/地区：美国\t<br>片长：142分钟<br>\t剧情介绍：范·迪塞尔饰演的唐老大多姆·托莱多，与莱蒂和他的儿子小布莱恩，过上了远离纷扰的平静生活。然而他们也知道，安宁之下总潜藏着危机。这一次，为了保护他所爱的人，唐老大不得不直面过去。他和伙伴们面临的是一场足以引起世界动荡的阴谋，以及一个前所未遇的一流杀手和高能车手。而这个名叫雅各布（约翰·塞纳饰，《自杀小队2》）的人，恰巧是多姆遗落在外的亲弟弟。";
    }

    @Override
    public String toString() {
        return "Film{" +
                "Film_id=" + Film_id +
                ", Film_name='" + Film_name + '\'' +
                ", Play_time=" + Play_time +
                ", Director='" + Director + '\'' +
                ", Actor='" + Actor + '\'' +
                ", Film_type='" + Film_type + '\'' +
                ", Make_film_area='" + Make_film_area + '\'' +
                ", Make_film_man='" + Make_film_man + '\'' +
                ", Film_lengh=" + Film_lengh +
                ", Film_introduce='" + Film_introduce + '\'' +
                ", Film_play_status=" + Film_play_status +
                ", Url='" + Url + '\'' +
                ", Score=" + Score +
                '}';
    }

    public float getScore() {
        return Score;
    }

    public void setScore(float score) {
        Score = score;
    }

    public String getUrl() {
        return Url;
    }

    public void setUrl(String url) {
        Url = url;
    }

    public Film(int film_id, String film_name, Timestamp play_time, String director, String actor, String film_type, String make_film_area, String make_film_man, int film_lengh, String film_introduce, int film_play_status) {
        Film_id = film_id;
        Film_name = film_name;
        Play_time = play_time;
        Director = director;
        Actor = actor;
        Film_type = film_type;
        Make_film_area = make_film_area;
        Make_film_man = make_film_man;
        Film_lengh = film_lengh;
        Film_introduce = film_introduce;
        Film_play_status = film_play_status;
    }
    public Film(){}



    public int getFilm_id() {
        return Film_id;
    }

    public void setFilm_id(int film_id) {
        Film_id = film_id;
    }

    public String getFilm_name() {
        return Film_name;
    }

    public void setFilm_name(String film_name) {
        Film_name = film_name;
    }

    public String getPlay_time() {
        int year = Play_time.getYear()+1900;
        int month = Play_time.getMonth() + 1;
        int day = Play_time.getDate();
        return year+"-"+month+"-"+day;
    }

    public void setPlay_time(Timestamp play_time) {
        Play_time = play_time;
    }

    public String getDirector() {
        return Director;
    }

    public void setDirector(String director) {
        Director = director;
    }

    public String getActor() {
        return Actor;
    }

    public void setActor(String actor) {
        Actor = actor;
    }

    public String getFilm_type() {
        return Film_type;
    }

    public void setFilm_type(String film_type) {
        Film_type = film_type;
    }

    public String getMake_film_area() {
        return Make_film_area;
    }

    public void setMake_film_area(String make_film_area) {
        Make_film_area = make_film_area;
    }

    public String getMake_film_man() {
        return Make_film_man;
    }

    public void setMake_film_man(String make_film_man) {
        Make_film_man = make_film_man;
    }

    public int getFilm_lengh() {
        return Film_lengh;
    }

    public void setFilm_lengh(int film_lengh) {
        Film_lengh = film_lengh;
    }

    public String getFilm_introduce() {
        return Film_introduce;
    }

    public void setFilm_introduce(String film_introduce) {
        Film_introduce = film_introduce;
    }

    public int getFilm_play_status() {
        return Film_play_status;
    }

    public void setFilm_play_status(int film_play_status) {
        Film_play_status = film_play_status;
    }
}
